package aishua.com.mytestapplist.engin;

import java.io.IOException;
import java.io.InputStream;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;

public interface WebService {
	/**
	 * https���� ����������
	 * @param host not be null
	 * @return
	 * @throws NoSuchAlgorithmException
	 * @throws KeyManagementException
	 * @throws Exception
	 */
	public InputStream executeHttpsGet(String host) throws NoSuchAlgorithmException, KeyManagementException, Exception;
	/**
	 * httpsPost����
	 * @param host ������not be null
	 * @param params ����
	 * @return  ������
	 * @throws NoSuchAlgorithmException
	 * @throws KeyManagementException
	 * @throws IOException
	 */
	public InputStream executeHttpsPost(String host, String params) throws NoSuchAlgorithmException, KeyManagementException, IOException;
	/**
	 * http����
	 * @param host ����not be null
	 * @param params ����
	 * @param isGetString always true
	 * @return �õ����ַ���
	 * @throws KeyManagementException
	 * @throws NoSuchAlgorithmException
	 * @throws IOException
	 */
	public String executeHttpsPost(String host, String params, boolean isGetString) throws KeyManagementException, NoSuchAlgorithmException, IOException;
}
